print("计科1813 24 姜沭琪")
X = 50
Y = 50
import random
while True:
    if (X != 100 and Y != 100):
        s = int(random.randint(1, 3))
        if s == 1:
           ind = "石头"
        elif s == 2:
           ind = "剪刀"
        elif s == 3:
           ind = "布"
           m = input('请输入你的选择:')
           print('电脑随机的选择是:%s' % ind)
           if m == ind:
              print('这局打平')
           elif (m == '石头' and ind == '剪刀') or (m == '布' and ind == '石头') or (m == '剪刀' and ind == '布'):
              print('恭喜你赢了 加十分')
              X += 10
              Y -= 5
           elif (m == '石头' and ind == '布') or (m == '布' and ind == '剪刀') or (m == '剪刀' and ind == '石头'):
              print('抱歉你输了 减5分')
              X -= 5
              Y += 10
    elif(X==100):
       print('恭喜你获得了最终的胜利')
    elif(Y == 100):
       print('下次再接再厉吧')